﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace Server
{
    [DataContract]
    public class OrderPosition
    {
        [DataMember]
        public ProductView Product { get; private set; }

        [DataMember]
        public long OrderId { get; private set; }

        [DataMember]
        public int Count { get; set; }

        [DataMember]
        public decimal Cost { get; set; }

        public  OrderPosition(ProductView product, long orderId)
        {
            Product = product;
            OrderId = orderId;
        }
    }
}